#ifndef __SWITCH_H__
#define __SWITCH_H__

#include "STC89C5xRC_RDP.h"


sbit	keyStop	=	P2^5;
sbit	keyStart=	P2^5;



/*
	brief: set a time to delay, if button pushed, pause, if get a second push, exit pause.
	unsigned long ms: delay time 
	return: is key pushed 1 or 0
*/
extern unsigned char delayKeyPause(unsigned long ms);


#endif //__SWITCH_H__

/* END OF FILE */
